<?php

namespace App\Models\Car;

use Illuminate\Database\Eloquent\Model;

class CarDriver extends Model
{
    protected $table = 'car_driver';

    public $dateFormat = 'Y-m-d H:i:s';

//    protected $is_allow_text = [0 => '不允许', 1 => '允许'];
//
//    public function getIsAllowAttribute($key)
//    {
//        return $this->is_allow_text[$key];
//    }
    public function driver(){
        return $this->belongsTo('App\Models\User\User','driver_id','id');
    }
}
